#!/bin/bash -e
rm -rf build
mkdir build
cd build

cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install_ ..
#{{ name }}
make -j$(nproc)
make install
./inja_code_gen --target /home/robot/code/dragon/src/inja/inja/gen/test.txt --template /home/robot/code/dragon/src/message_gateway/src/cmd/n2n_cmd.cpp --template_json "" --data /home/robot/code/dragon/src/inja/inja/gen/data.json